package cn.hl.sentinel;

import cn.hl.domain.Employee;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

public class PayFallback {

    @GetMapping("/getById/{id}")
    public static Employee getEmployeeById(@PathVariable("id")Long id,Throwable e) {
        return new Employee(-1L,"熔断","服务不可用，请稍后重试！");
    }

}
